package com.frank.auth.application.convert;

import com.frank.auth.application.dto.AuthRoleDto;
import com.frank.auth.application.dto.AuthRolePermissionDto;
import com.frank.auth.domain.bo.AuthRoleBo;
import com.frank.auth.domain.bo.AuthRolePermissionBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2024/2/9
 * @description
 */
@Mapper
public interface AuthRolePermissionDtoConvert {

    AuthRolePermissionDtoConvert INSTANCE = Mappers.getMapper(AuthRolePermissionDtoConvert.class);

    AuthRolePermissionDto convertBoToDto(AuthRolePermissionBo authRolePermissionBo);

    AuthRolePermissionBo convertDtoToBo(AuthRolePermissionDto authRolePermissionDto);
}
